<input name="action" value="additem" type="hidden" />
<input name="item" value="" type="hidden" />
<form class="form" method="POST">
	<div id="main" class="curve">
		<div id="overlay" class="curve"></div>
		<!--overlay-->
		<h2><?php echo $ptitle; ?></h2>
		
		<div class="section">
			<h4>Leave Information</h4>
			<div class="row">		
				<div class="div-left">
					<label>Leave Code:<span class="req">*</span></label>
					<input name="leave_code" id="leave_code" title="Leave Code" maxlength="5" class="validate[required]" />
				</div>
				<div class="div-right">
					<label>Leave Name:<span class="req">*</span></label>
					<input name="leave_name" id="leave_name" title="Leave Name" class="validate[required]" />
				</div>
				<div class="clear"></div>
			</div>
			<!--row-->			
			<div class="row">		
				<div class="div-left">
					<label>No. of Days:<span class="req">*</span></label>
					<input name="no_of_days" id="no_of_days" title="Number of Days" class="validate[required, custom[integer]]" />
				</div>
				<div class="div-right">
					<label>Applicable to:</label>
					<select name="leave_scope_id" id="leave_scope_id" title="Leave Scope">
						<option value="0" selected="selected">All</option>
						<?php foreach($leave_scope as $l) echo "<option value='".$l['leave_scope_id']."'>".$l['es_name']."</option>"; ?>
					</select>
				</div>
				<div class="clear"></div>
			</div>
			<!--row-->
			
			<div class="row">		
				<div class="div-left">
					<label>Available to:</label>
					<select name="gender_id" id="gender_id" title="Gender" class="">
						<option value="0" selected="selected">All</option>
						<?php foreach($genders as $g) echo "<option value='$g->gender_id'>$g->gender_name</option>"; ?>
					</select>
				</div>
				<div class="div-right">
					<label>Add to Current Employees:</label>
					<input type="checkbox" name="add_to_current" id="add_to_current" value="1" />
				</div>
				<div class="clear"></div>
			</div>
			<!--row-->
			
			
		</div>
		<!--section-->
		<div class="section">
			<div class="row float-right">
				<a href="<?php echo base_url().$module ?>/manage.html" class="submit-small"><span>Cancel</span></a>
				<a href="javascript:void(0)" class="submit-small" id="form-submit"><span>Save</span></a>
				<div class="clear"></div>
			</div>
		</div>
		<!--section-->
		
	</div>
	<!--main-->
</form>